<div class="editor-default-node4-header-medium" data-template="t_4_3">
	<img src="https://urc-thumb.oss-cn-beijing.aliyuncs.com/resource-temp/1725514076938section-ico4.png">1.2.8
	启停openGauss
</div>

<p class="row_dist_2 word_dist_0" style="text-align:justify;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;与访问openGauss相同，openGauss的启动和停止需要切换到操作系统的omm用户下才能执行。由于安装完成后系统会自动启动openGauss数据库，可以先查看数据库的运行状态。
</p>
<p class="row_dist_2 word_dist_0" style="text-align:justify;">&nbsp; &nbsp; &nbsp; &nbsp;
	1．在omm用户下查看数据库服务的运行状态。数据库状态为“Normal”说明数据库已经启动且状态正常，如轮播图1-2-1(a)所示。命令如下：</p>
<p style=""><span class="font_blue2">[omm@node1
		~]$ gs_om -t status</span></p>

<p style="text-align:justify;">&nbsp; &nbsp; &nbsp; &nbsp;2．在omm用户下关闭数据库服务，如轮播图1-2-1(b)所示。命令如下：</p>
<p><span class="font_blue2">[omm@node1
		~]$ gs_om -t stop</span></p>
<p style="text-align:justify;">&nbsp; &nbsp; &nbsp; &nbsp;3．在omm用户下开启数据库服务，如轮播图1-2-1(c)所示。命令如下：<br></p>
<p><span class="font_blue2">[omm@node1
		~]$ gs_om -t start</span></p>
<div class="swiper-container swiper-initialized swiper-horizontal swiper-pointer-events swiper-backface-hidden">
	<div class="swiper-wrapper" id="swiper-wrapper-6f9a68f12f0d4922" aria-live="polite"
		style="transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;">
		<div class="swiper-slide swiper-slide-active" style="width: 688px;" role="group" aria-label="1 / 3"><img
				res-type="image" style="width:auto;max-width:100%;max-height:400px;" class=" cres" id="PKQ5A6763C"
				src="https://dbook.hep.com.cn/api/v2/resource/preview?id=PKQ5A6763C">
			<h6 class="tuIntro">(a) 查看数据库状态</h6>
		</div>
		<div class="swiper-slide swiper-slide-next" style="width: 688px;" role="group" aria-label="2 / 3"><img
				res-type="image" style="width:auto;max-width:100%;max-height:400px;" class=" cres" id="P3V5SRH63C"
				src="https://dbook.hep.com.cn/api/v2/resource/preview?id=P3V5SRH63C">
			<h6 class="tuIntro">(b) 关闭数据库服务</h6>
		</div>
		<div class="swiper-slide" style="width: 688px;" role="group" aria-label="3 / 3"><img res-type="image"
				style="width:auto;max-width:100%;max-height:400px;" class=" cres" id="PK95ARH6KJ"
				src="https://dbook.hep.com.cn/api/v2/resource/preview?id=PK95ARH6KJ">
			<h6 class="tuIntro">(c) 开启数据库服务</h6>
		</div>
	</div>
	<div class="swiper-scrollbar" style="width: 100%;"></div>
	<div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal">
		<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button"
			aria-label="Go to slide 1" aria-current="true"></span><span class="swiper-pagination-bullet" tabindex="0"
			role="button" aria-label="Go to slide 2"></span><span class="swiper-pagination-bullet" tabindex="0"
			role="button" aria-label="Go to slide 3"></span></div>
	<div class="swiper-button-prev swiper-button-disabled" tabindex="-1" role="button" aria-label="Previous slide"
		aria-controls="swiper-wrapper-6f9a68f12f0d4922" aria-disabled="true"></div>
	<div class="swiper-button-next" tabindex="0" role="button" aria-label="Next slide"
		aria-controls="swiper-wrapper-6f9a68f12f0d4922" aria-disabled="false"></div><span class="swiper-notification"
		aria-live="assertive" aria-atomic="true"></span>
</div>
<p><span class="font_blue2"></span></p>
<p><span class="font_blue2"></span></p>
<p><span class="font_blue2"></span></p>
<p style="text-align:center;">轮播图1-2-1 查看数据库状态和启停openGauss</p>
<p style="text-align: center;" id="video_p_FKFLQL53JC"><span class="td" id="video_td_span_FKFLQL53JC"><input
			id="check_FKFLQL53JC" type="checkbox" class="insertVideoCheck"><span class="videoTitlepc-new"
			id="video_title_span_FKFLQL53JC"
			style="background: url(https://dbook.hep.com.cn/admin/css/img/vedio_pic.png) no-repeat 5px 7px;background-size: 45px;">视频1-2-4
			安装openGauss数据库（登录openGauss和启停openGauss）</span><label for="check_FKFLQL53JC" class="check-in-new"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/upICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><label
			for="check_FKFLQL53JC" class="check-out-new"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/downICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><span
			class="element-new"><video res-type="video" class="insertVideo cres" id="FKFLQL53JC"
				src="https://dbook.hep.com.cn/api/v2/resource/preview?id=FKFLQL53JC" controls="" width="100%"
				poster="https://dbook.hep.com.cn/api/v2/resource/cover/preview?id=FKFLQL53JC"></video><br><span
				class="insertVideoTitle" id="video_title_FKFLQL53JC">视频1-2-4
				安装openGauss数据库（登录openGauss和启停openGauss）</span></span></span></p>
<div class="editor-default-node7-header-small" data-template="t_7_4">练一练</div>
<p id="span_h5_PKRVW5AD3J"><iframe src="https://dbook.hep.com.cn/api/v2/resource/preview?id=PKRVW5AD3J" width="100%"
		height="600px" frameborder="no" border="0" res-type="iframe" class="insertH5 cres" id="PKRVW5AD3J"></iframe></p>